﻿#include <QtWidgets>
#include <qlogging.h>
#include <memory>

#define QT_MESSAGELOGCONTEXT

/*带返回值的真假校验*/
#define VALRET_ASSERT(condition, ret)\
		do \
		{\
			if (!(condition))\
			{\
				return (ret);\
			}\
		} while (0)

/*不带返回值的真假校验*/
#define VOIDRET_ASSERT(condition)\
		do \
		{\
			if (!(condition))\
			{\
				return;\
			}\
		} while (0)

